package cc.iotkit.manager.dto.bo.device;

import cc.iotkit.common.utils.MapstructUtils;
import cc.iotkit.model.Id;
import cc.iotkit.model.device.DeviceInfo;
import cc.iotkit.model.device.DeviceInfoParts;
import cc.iotkit.model.device.DeviceParts;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.*;

@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = DeviceInfoParts.class, reverseConvertGenerate = false)
public class DeviceInfoPartsBo extends DeviceInfoParts {
    public <T> T to(Class<T> tClass) {
        return MapstructUtils.convert(this, tClass);
    }

}